<%-- 
  - Author: Abed Yaseen
  - Date: 18-Mar-2012
  - Copyright Notice: TRAKHEES
  - Description: adminComments.jsp
 --%>
<%@ include file="/WEB-INF/view/include.jsp"%> 
      <!-- Comments -->
      <div id="adminCommentsDiv">
        	<fieldset>
			 	<legend><spring:message code="label.comments" /></legend>
			</fieldset>
            
            	<div class="t_form_middle">
            	
	            	<div>
	                	<div><label for="adminComments"><spring:message code="label.comments" /></label></div>
	                	<div><form:textarea path="adminComments" id="adminComments" cssClass="t_form-fld-disable"  onkeyup="textLimit(this,2000);" onblur="textLimit(this,500);" cssStyle="width:670px"/></div>
	                	
	                </div>
              	</div>   
               	 
               	 <div class="clear"></div>
                
				 <div id="commentsAccordion">
				 		<c:forEach var="commentItem" items="${comments}" varStatus="status">
 
 									<h3><a href="#" class="clearhover" style="width: 100%; height: 100%; float: none; background: none;"><fmt:formatDate value="${commentItem.date}" pattern="MM/dd/yyyy hh:mm"/> - ${commentItem.username} - ${commentItem.applicationStatus}</a></h3>
									<div>
										<p>${commentItem.comment}</p>
									</div>
 
 						</c:forEach>
					
				</div>
     </div>
     
     <script>
     $(document).ready(function() {
 		$('#commentsAccordion').accordion({
			collapsible: true
		});
 	});
	</script>